package com.usian;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @TODO:
 * @Author:baimu
 * @Date:2023 11 22 09 08
 **/
@SpringBootApplication
@MapperScan("com.usian.mapper")
public class UserApp {

    /**
     * mybatis-plus分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

    public static void main(String[] args) {
        SpringApplication.run(
                UserApp.class,
                args
        );

    }
}
